import {
  defineConfig,
  transformerDirectives,
  transformerVariantGroup,
} from 'unocss'
import { presetApplet, presetRemRpx } from 'unocss-applet'

export default defineConfig({
  presets: [
    presetApplet() as any, // 适配小程序
    presetRemRpx() as any, // 支持 rem 和 rpx 单位
  ],
  transformers: [
    transformerDirectives(), // 参考 https://unocss.dev/transformers/directives
    transformerVariantGroup(), // 参考 https://unocss.dev/transformers/variant-group
  ],
})
